package com.safewind.service;

import java.io.File;
import java.io.IOException;
import java.util.List;

import com.safewind.model.Address;
import com.safewind.model.AddressData;

public interface IAddressService {
	public Address getAddressById(String addressId);

	public void addAddress(Address address);

	public List<AddressData> saveAddressByExport(File file, String userId)
			throws IOException, NumberFormatException;

	public void addAllAddress(List<Address> addrList);

	public void updateAddress(Address address);

	public void deleteAddressByIds(String id);

	public void deleteAllByGroupId(String groupId);

	public List<Address> getAllByGroupId(String groupId);

	public Address selectAddressByPhoneNumberAndGroup(String PhoneNumber,
			String groupId);

	public void updateGroupIds(String ids, String groupId);

	public List<Address> getAddressListByIds(List<String> param);

}
